import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import './plugins/element.js'
// 导入全局样式表
import './assets/css/global.css'
// 导入swiper
// import Swiper from "swiper";
// 导入swiper css样式
// import 'swiper/swiper-bundle.css'
// import VueAwesomeSwiper from 'vue-awesome-swiper'


// import { store } from './store/store'

// Vue.use(VueAwesomeSwiper, /* { default global options } */ )

import axios from 'axios'
// 配置请求路径
axios.defaults.baseURL = 'http://47.100.110.213/cy_competition/index.php/'
axios.interceptors.request.use(config => {
    config.headers.Authorization = window.sessionStorage.getItem('token')
    return config
})

Vue.prototype.$http = axios

Vue.use(ElementUI);

Vue.config.productionTip = false

new Vue({
    // store: store,
    router,
    render: h => h(App)
}).$mount('#app')